/*
 * @Author: Shao Tao
 * @Date: 2021-11-01 12:08:13
 * @LastEditTime: 2021-11-05 16:04:58
 * @LastEditors: Shao Tao
 * @Description:
 * @FilePath: \vue-openlayers\src\router\index.js
 */
import Vue from "vue";
import VueRouter from "vue-router";

import Nav from "../views/Nav.vue";

import Home from "../views/Home.vue";

import asyncRouters from "./moudles/index"

import AppPointSelect from "../views/AppPointSelect.vue";
import AppPointSelect2 from "../views/AppPointSelect2.vue";
import AppRectangleSelect from "../views/AppRectangleSelect.vue";
import AppRectangleSelect2 from "../views/AppRectangleSelect2.vue";
import AppRectangleSelect3 from "../views/AppRectangleSelect3.vue";

import AppCircleSelect from "../views/AppCircleSelect.vue";
import AppAutoCircleSelect from "../views/AppAutoCircleSelect.vue";
import AppPolygonSelect from "../views/AppPolygonSelect.vue";

import CeLength from "../views/basedemo2/CeLength.vue";
import MeasureToolApp from "../views/basedemo2/MeasureToolApp.vue";
import BaseDraw from "../views/basedemo2/BaseDraw.vue";
import AppMeasure from "../views/basedemo2/AppMeasure.vue";

import MeasureToolApp2 from "../views/basedemo1/MeasureToolApp2.vue";
import AppRouter1 from "../views/basedemo3/AppRouter1.vue";
import AppRouter2 from "../views/basedemo3/AppRouter2.vue";
import AppRouter3 from "../views/basedemo3/AppRouter3.vue";
import AppRouter4 from "../views/basedemo3/AppRouter4.vue";
import AppRouter5 from "../views/basedemo3/AppRouter5.vue";
import DrawCircleApp from "../views/basedemo2/DrawCircleApp.vue";

import AppCircleSelectFlash from "../views/AppCircleSelectFlash.vue";

import AppCustomStyle from "../views/AppCustomStyle.vue";
import AppConver from "../views/AppConver.vue";
import OlCoordinatePack from "../views/funcdemo/OlCoordinatePack.vue";
import AppCircleLink from "../views/funcdemo/AppCircleLink.vue";
import AppGradientLineStyle from "../views/funcdemo/AppGradientLineStyle.vue";
import AppRotateCanvas from "../views/funcdemo/AppRotateCanvas.vue";
import AppSaveViewMap from "../views/funcdemo/AppSaveViewMap.vue";
import AppIconSymbolizer from "../views/funcdemo/AppIconSymbolizer.vue";
import bingtu from "../views/echarts/bingtu.vue";
import percent_template from "../views/echarts/percent_template.vue"
import percent_template_demo from "../views/echarts/percent_template_demo.vue"
// import demo_vue_virtual_scroller from "../views/demo/demo_vue_virtual_scroller.vue"


Vue.use(VueRouter);

const routes = [
        ...asyncRouters,
    {
        path: "/home",
        name: "Home",
        component: Home,
    },
    {
        path: "/",
        name: "Nav",
        component: Nav,
    },
    {
        path: "/appPointSelect",
        name: "AppPointSelect",
        component: AppPointSelect,
    },
    {
        path: "/appPointSelect2",
        name: "AppPointSelect2",
        component: AppPointSelect2,
    },
    {
        path: "/appRectangleSelect",
        name: "AppRectangleSelect",
        component: AppRectangleSelect,
    },
    {
        path: "/appRectangleSelect2",
        name: "AppRectangleSelect2",
        component: AppRectangleSelect2,
    },
    {
        path: "/appRectangleSelect3",
        name: "AppRectangleSelect3",
        component: AppRectangleSelect3,
    },
    {
        path: "/appCircleSelect",
        name: "AppCircleSelect",
        component: AppCircleSelect,
    },
    {
        path: "/appAutoCircleSelect",
        name: "AppAutoCircleSelect",
        component: AppAutoCircleSelect,
    },
    {
        path: "/appPolygonSelect",
        name: "AppPolygonSelect",
        component: AppPolygonSelect,
    },
    {
        path: "/ceLength",
        name: "CeLength",
        component: CeLength,
    },
    {
        path: "/measureToolApp",
        name: "MeasureToolApp",
        component: MeasureToolApp,
    },
    {
        path: "/baseDraw",
        name: "BaseDraw",
        component: BaseDraw,
    },
    {
        path: "/appMeasure",
        name: "AppMeasure",
        component: AppMeasure,
    },
    {
        path: "/measureToolApp2",
        name: "MeasureToolApp2",
        component: MeasureToolApp2,
    },
    {
        path: "/appRouter1",
        name: "AppRouter1",
        component: AppRouter1,
    },
    {
        path: "/appRouter2",
        name: "AppRouter2",
        component: AppRouter2,
    },
    {
        path: "/appRouter3",
        name: "AppRouter3",
        component: AppRouter3,
    },
    {
        path: "/appRouter4",
        name: "AppRouter4",
        component: AppRouter4,
    },
    {
        path: "/appRouter5",
        name: "AppRouter5",
        component: AppRouter5,
    },
    {
        path: "/drawCircleApp",
        name: "DrawCircleApp",
        component: DrawCircleApp,
    },
    {
        path: "/appCircleSelectFlash",
        name: "AppCircleSelectFlash",
        component: AppCircleSelectFlash,
    },
    {
        path: "/appCustomStyle",
        name: "AppCustomStyle",
        component: AppCustomStyle,
    },
    {
        path: "/appConver",
        name: "AppConver",
        component: AppConver,
    },
    {
        path: "/olCoordinatePack",
        name: "OlCoordinatePack",
        component: OlCoordinatePack,
    },
    {
        path: "/appCircleLink",
        name: "AppCircleLink",
        component: AppCircleLink,
    },
    {
        path: "/appGradientLineStyle",
        name: "AppGradientLineStyle",
        component: AppGradientLineStyle,
    },
    {
        path: "/appRotateCanvas",
        name: "AppRotateCanvas",
        component: AppRotateCanvas,
    },
    {
        path: "/appSaveViewMap",
        name: "AppSaveViewMap",
        component: AppSaveViewMap,
    },
    {
        path: "/appIconSymbolizer",
        name: "AppIconSymbolizer",
        component: AppIconSymbolizer,
    },
    {
        path: "/bingtu",
        name: "bingtu",
        component: bingtu,
    },
    {
        path: "/percent_template",
        name: "percent_template",
        component: percent_template,
    },
    {
        path: "/percent_template_demo",
        name: "percent_template_demo",
        component: percent_template_demo,
    },
    // {
    //     path: "/demo_vue_virtual_scroller",
    //     name: "demo_vue_virtual_scroller",
    //     component: demo_vue_virtual_scroller,
    // }
];

const router = new VueRouter({
    routes,
});

export default router;
